package top.sjydzq.www.service;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.sjydzq.www.POJO.POJOUser;
import top.sjydzq.www.bean.Admin;
import top.sjydzq.www.bean.User;

import java.util.List;

@Repository("UserDAO")
@Mapper
public interface UserService {
    public List<User> selectAll();
    public User selectByEmail(String email);
    public Admin selectByName(String name);
    public boolean addUser(POJOUser pojoUser);
    public void remove(int userId);
}
